﻿@model IEnumerable<Website.Models.Administrators>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            TenAdministrator
        </th>
        <th>
            MatKhau
        </th>
        <th>
            Email
        </th>
        <th>
            NgayTao
        </th>
        <th>
            HoatDong
        </th>
        <th>
            SoDienThoai
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.TenAdministrator)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MatKhau)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NgayTao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HoatDong)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SoDienThoai)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.IdAdministrator }) |
            @Html.ActionLink("Details", "Details", new { id=item.IdAdministrator }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.IdAdministrator })
        </td>
    </tr>
}

</table>
